package com.ease.framework.gef4g.actions {
   import com.ease.framework.gef4g.IGraphicalEditor;
   import com.ease.framework.workbench.Workbench;

   import flash.events.MouseEvent;

   import mx.controls.CheckBox;

   public class ZoomCheckBox extends CheckBox {
      public function ZoomCheckBox() {
         super();
         this.addEventListener(MouseEvent.CLICK, onMouseClick);
      }

      protected function onMouseClick(event:MouseEvent):void {
         if (this.selected) {
            IGraphicalEditor(Workbench.instance.currentEditor).showZoomSliderPan();
         }
         else {
            IGraphicalEditor(Workbench.instance.currentEditor).hiddenZoomSliderPan();
         }
      }
   }
}